﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace AccessWare
{
    public partial class ReceiptNEw : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LBLSAVE.Visible = false;
        }

        protected void btn_receipt_Click(object sender, EventArgs e)
        {
            SPCalling objSPCalling = new SPCalling();
            string strSPName = "InsertReceiptValuesNEW";
            object[] objParam = new object[16];
            objParam[0] = txt_wagon.Text;


            objParam[1] = //datepicker.Text;

            objParam[2] = txt_LRNo.Text;
            objParam[3] = txt_truck.Text;
            objParam[4] = txt_noofbags.Text;
            objParam[5] = txt_gross.Text;
            objParam[6] = txt_tare.Text;

            objParam[7] = txt_nt.Text;
            objParam[8] = txt_grade.Text;
            objParam[9] = txt_stackno.Text;



            objParam[10] = txt_weslipno.Text;
            objParam[11] = txt_rr.Text;
            objParam[12] = txt_originatin.Text;
            objParam[13] = txt_crop.Text;


            objParam[14] = txt_nameoftrans.Text;
            objParam[15] = txt_Remarks.Text;
            
            DataTable dtResourceDetailsa = null;
            dtResourceDetailsa = objSPCalling.ExecuteDataset(CommandType.StoredProcedure, strSPName, objParam).Tables[0];
            LBLSAVE.Text = dtResourceDetailsa.Rows[0]["TextReceived"].ToString();
            LBLSAVE.Visible = true;
        }
 
    }
}